#pragma once
#include <iostream>
class Animal {
  std::string &name;

protected:
  void bark() { printf("Animal named %s barks\n", name.c_str()); }

public:
  Animal(std::string &name) : name(name) { name += ".."; }
  virtual int react() = 0;
  std::string getName() { return name; }
};
